<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="bookmark" href="favicon.ico"/>
<link href="../h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="../h-ui/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="../h-ui/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="../h-ui/lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../easyui/themes/icon.css">
<script type="text/javascript" src="../easyui/jquery.min.js"></script> 
<script type="text/javascript" src="../h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="../h-ui/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="../easyui/jquery.easyui.min.js"></script>
<script type="text/javascript">
	$(function(){
		//注册
		$("#registerBtn").click(function(){
		var data = $("#form").serialize();
			$.ajax({
				type: "post",
				url: "register",
				data: data, 
				dataType: "json", //返回数据类型
				success: function(data){
					if(data.type=="success"){
						window.location.href="login";
					}else{
						alert(data.msg);
					}
				}
			});
		});
	});
</script> 
<title>注册|期刊在线投稿系统</title>
<meta name="keywords" content="期刊在线投稿系统">
</head>
<body>
<div class="header" style="padding: 0;">
	<h2 style="color: white; width: 400px; height: 60px; line-height: 60px; margin: 0 0 0 30px; padding: 0;">期刊在线投稿系统</h2>
</div>
<div class="loginWraper">
  <div id="loginform" class="loginBox">
    <form id="form" class="form form-horizontal" method="post">
      <div class="row cl">
        <label class="form-label col-3"><i class="Hui-iconfont">&#xe60d;</i></label>
        <div class="formControls col-8">
          <input id="username" name="username" type="text" placeholder="账户" class="input-text size-L">
        </div>
      </div>
      <div class="row cl">
        <label class="form-label col-3"><i class="Hui-iconfont">&#xe60e;</i></label>
        <div class="formControls col-8">
          <input id="password" name="password" type="password" placeholder="密码" class="input-text size-L">
        </div>
      </div>
      <div class="row cl">
        <label class="form-label col-3"><i class="Hui-iconfont">&#xe60e;</i></label>
        <div class="formControls col-8">
          <input id="contain_password" name="contain_password" type="password" placeholder="确认密码" class="input-text size-L">
        </div>
      </div>
       <div class="row cl">
        <label class="form-label col-3"><i class="icon Hui-iconfont">&#xe602;</i></label>
        <div class="formControls col-8">
          <input id="author_name" name="author_name" type="text" placeholder="姓名" class="input-text size-L">
        </div>
      </div>
       <div class="mt-20 skin-minimal row" style="text-align: center;">
       		<label>性别：</label>
			<div class="radio-box">
				<input type="radio" id="radio-1" name="sex" checked value="男" />
				<label for="radio-2">男</label>
			</div>
			<div class="radio-box">
				<input type="radio" id="radio-2" name="sex" value="女" />
				<label for="radio-1">女</label>
			</div>
		</div>
	    <div class="row cl">
	        <label class="form-label col-3"><i class="icon Hui-iconfont">&#xe696;</i></label>
	        <div class="formControls col-8">
	          <input id="phone_number" name="phone_number" type="phnoe" placeholder="电话号码" class="input-text size-L">
	        </div>
      	</div>
      	 <div class="row cl">
	        <label class="form-label col-3"><i class="icon Hui-iconfont">&#xe643;</i></label>
	        <div class="formControls col-8">
	          <input id="address" name="address" type="text" placeholder="居住地址" class="input-text size-L">
	        </div>
      	</div>
      <!-- 
      <div class="row cl">
        <div class="formControls col-8 col-offset-3">
          <input class="input-text size-L" name="vcode" type="text" placeholder="请输入验证码" style="width: 200px;">
          <img title="点击图片切换验证码" id="vcodeImg" src="LoginServlet?method=GetVCode"></div>
      </div>
       -->
 
      <div class="row">
        <div class="formControls col-8 col-offset-3">
          <input id="registerBtn" style="margin-right:80px;" type="button" class="btn btn-success radius size-L" value="&nbsp;提&nbsp;&nbsp;&nbsp;&nbsp;交&nbsp;">
          <input id="resetBtn" type="reset" class="btn btn-success radius size-L" value="&nbsp;重&nbsp;&nbsp;&nbsp;&nbsp;置&nbsp;">
        </div>
      </div>
    </form>
  </div>
</div>
<div class="footer">Copyright &nbsp;@cuinn </div>
</body>
</html>